package com.geek.springcloud.alibaba.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.geek.springcloud.entities.CommonResult;

/**
 * @ClassName CustomerBlockHandler
 * @Description 自定义限流处理逻辑
 * @Author zzm
 * @Data 2021/4/13 15:07
 * @Version 1.0
 */
public class CustomerBlockHandler {

    public static CommonResult handleException1(BlockException exception) {
        return new CommonResult(2020, "自定义限流处理信息....CustomerBlockHandler1");

    }

    public static CommonResult handleException2(BlockException exception) {
        return new CommonResult(2020, "自定义限流处理信息....CustomerBlockHandler2");
    }
}
